package com.tledu.spring;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * @author ruperts-tears
 * @MapperScan(basePackages = "com.tledu.spring.dao")
 */
@SpringBootApplication
public class Application {

    /**
     * 启动控制台打印 banner
     * @param args 启动附带执行参数
     */
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Application.class);
        springApplication.setBannerMode(Banner.Mode.CONSOLE);
        springApplication.run(args);
    }
}
